home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / SelectioBP.h.z / SelectioBP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  11.2 KB  |  310 lines

  1. /*
  2.  * SelectioBP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: SelectioBP.h /main/cde1_maint/2 1995/08/18 19:21:59 drk $ */
  36. /*
  37. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  38. /*
  39. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  40. #ifndef _XmSelectionBoxP_h
  41. #define _XmSelectionBoxP_h
  42.  
  43. #include <Xm/BulletinBP.h>
  44. #include <Xm/SelectioB.h>
  45.  
  46. #ifdef __cplusplus
  47. extern "C" {
  48. #endif
  49.  
  50. /* Defines for use in allocation geometry matrix. */
  51.  
  52. #define XmSB_MAX_WIDGETS_VERT    8
  53.  
  54. #define XmUNSPECIFIED        (~0)
  55.  
  56. /* Constraint part record for SelectionBox widget */
  57. typedef struct _XmSelectionBoxConstraintPart
  58. {
  59.    char unused;
  60. } XmSelectionBoxConstraintPart, * XmSelectionBoxConstraint;
  61.  
  62. /*  New fields for the SelectionBox widget class record  */
  63.  
  64. typedef struct
  65. {
  66.         XtCallbackProc  list_callback ;
  67.     XtPointer        extension;      /* Pointer to extension record */
  68. } XmSelectionBoxClassPart;
  69.  
  70.  
  71. /* Full class record declaration */
  72.  
  73. typedef struct _XmSelectionBoxClassRec
  74. {
  75.     CoreClassPart            core_class;
  76.     CompositeClassPart        composite_class;
  77.     ConstraintClassPart        constraint_class;
  78.     XmManagerClassPart        manager_class;
  79.     XmBulletinBoardClassPart    bulletin_board_class;
  80.     XmSelectionBoxClassPart        selection_box_class;
  81. } XmSelectionBoxClassRec;
  82.  
  83. externalref XmSelectionBoxClassRec xmSelectionBoxClassRec;
  84.  
  85.  
  86. /* New fields for the SelectionBox widget record */
  87.  
  88. typedef struct
  89. {
  90.     Widget        list_label;        /*  list Label  */
  91.     XmString    list_label_string;
  92.  
  93.     Widget        list;            /*  List  */
  94.     XmString    *list_items;
  95.     int        list_item_count;
  96.     int        list_visible_item_count;
  97.     int        list_selected_item_position;
  98.  
  99.     Widget        selection_label;    /*  selection Label  */
  100.     XmString    selection_label_string;
  101.  
  102.     Widget        text;            /*  Text  */
  103.     XmString    text_string;
  104.     short        text_columns;
  105.  
  106.     Widget        work_area;        /*  other widget  */
  107.  
  108.     Widget        separator;        /*  separator  */
  109.  
  110.     Widget        ok_button;        /*  enter button  */
  111.     XmString    ok_label_string;
  112.  
  113.     Widget        apply_button;        /*  apply button  */
  114.     XmString    apply_label_string;
  115.  
  116.     XmString    cancel_label_string;    /*  cancel button label  */
  117.  
  118.     Widget        help_button;        /*  help button  */
  119.     XmString    help_label_string;
  120.  
  121.     XtCallbackList    ok_callback;        /*  callbacks  */
  122.     XtCallbackList    apply_callback;
  123.     XtCallbackList    cancel_callback;
  124.     XtCallbackList    no_match_callback;
  125.  
  126.     XtAccelerators    text_accelerators;
  127.  
  128.     Boolean        must_match;        /*  flags  */
  129.     Boolean        adding_sel_widgets;
  130.     Boolean        minimize_buttons;
  131.  
  132.     unsigned char    dialog_type;        /*  prompt or selection  */
  133.       unsigned char   child_placement;
  134. } XmSelectionBoxPart;
  135.  
  136.  
  137. /****************************************************************
  138.  *
  139.  * Full instance record declaration
  140.  *
  141.  ****************************************************************/
  142.  
  143. typedef struct _XmSelectionBoxRec
  144. {
  145.     CorePart        core;
  146.     CompositePart        composite;
  147.     ConstraintPart        constraint;
  148.     XmManagerPart        manager;
  149.     XmBulletinBoardPart    bulletin_board;
  150.     XmSelectionBoxPart    selection_box;
  151. } XmSelectionBoxRec;
  152.  
  153.  
  154. /*  access macros  */
  155.  
  156. #define SB_ListLabel(w) (((XmSelectionBoxWidget) (w))->selection_box.list_label)
  157. #define SB_List(w) (((XmSelectionBoxWidget) (w))->selection_box.list)
  158. #define SB_SelectionLabel(w) (((XmSelectionBoxWidget) (w))->selection_box.selection_label)
  159. #define SB_Text(w) (((XmSelectionBoxWidget) (w))->selection_box.text)
  160. #define SB_WorkArea(w) (((XmSelectionBoxWidget) (w))->selection_box.work_area)
  161. #define SB_Separator(w) (((XmSelectionBoxWidget) (w))->selection_box.separator)
  162. #define SB_OkButton(w) (((XmSelectionBoxWidget) (w))->selection_box.ok_button)
  163. #define SB_ApplyButton(w) (((XmSelectionBoxWidget) (w))->selection_box.apply_button)
  164. #define SB_CancelButton(w) (((XmSelectionBoxWidget) (w))->bulletin_board.cancel_button)
  165. #define SB_HelpButton(w) (((XmSelectionBoxWidget) (w))->selection_box.help_button)
  166. #define SB_DefaultButton(w) (((XmSelectionBoxWidget) (w))->bulletin_board.default_button)
  167. #define SB_MarginHeight(w) (((XmSelectionBoxWidget) (w))->bulletin_board.margin_height)
  168. #define SB_MarginWidth(w) (((XmSelectionBoxWidget) (w))->bulletin_board.margin_width)
  169. #define SB_ButtonFontList(w) (((XmSelectionBoxWidget) (w))->bulletin_board.button_font_list)
  170. #define SB_LabelFontList(w) (((XmSelectionBoxWidget) (w))->bulletin_board.label_font_list)
  171. #define SB_TextFontList(w) (((XmSelectionBoxWidget) (w))->bulletin_board.text_font_list)
  172. #define SB_StringDirection( w) \
  173.                        (((XmSelectionBoxWidget)( w))->manager.string_direction)
  174. #define SB_AddingSelWidgets( w) \
  175.                  (((XmSelectionBoxWidget) w)->selection_box.adding_sel_widgets)
  176. #define SB_TextAccelerators( w) \
  177.                   (((XmSelectionBoxWidget) w)->selection_box.text_accelerators)
  178. #define SB_ListItemCount( w) \
  179.                     (((XmSelectionBoxWidget) w)->selection_box.list_item_count)
  180. #define SB_ListSelectedItemPosition( w) (((XmSelectionBoxWidget) w) \
  181.                                    ->selection_box.list_selected_item_position)
  182. #define SB_ListVisibleItemCount( w) (((XmSelectionBoxWidget) w) \
  183.                                        ->selection_box.list_visible_item_count)
  184. #define SB_TextColumns( w) \
  185.                        (((XmSelectionBoxWidget) w)->selection_box.text_columns)
  186. #define SB_MinimizeButtons( w) \
  187.                    (((XmSelectionBoxWidget) w)->selection_box.minimize_buttons)
  188. #define SB_MustMatch( w) (((XmSelectionBoxWidget) w)->selection_box.must_match)
  189.  
  190.  
  191. /********    Private Function Declarations    ********/
  192. #ifdef _NO_PROTO
  193.  
  194. extern void _XmSelectionBoxCreateListLabel() ;
  195. extern void _XmSelectionBoxCreateSelectionLabel() ;
  196. extern void _XmSelectionBoxCreateList() ;
  197. extern void _XmSelectionBoxCreateText() ;
  198. extern void _XmSelectionBoxCreateSeparator() ;
  199. extern void _XmSelectionBoxCreateOkButton() ;
  200. extern void _XmSelectionBoxCreateApplyButton() ;
  201. extern void _XmSelectionBoxCreateCancelButton() ;
  202. extern void _XmSelectionBoxCreateHelpButton() ;
  203. extern XmGeoMatrix _XmSelectionBoxGeoMatrixCreate() ;
  204. extern Boolean _XmSelectionBoxNoGeoRequest() ;
  205. extern void _XmSelectionBoxGetSelectionLabelString() ;
  206. extern void _XmSelectionBoxGetListLabelString() ;
  207. extern void _XmSelectionBoxGetTextColumns() ;
  208. extern void _XmSelectionBoxGetTextString() ;
  209. extern void _XmSelectionBoxGetListItems() ;
  210. extern void _XmSelectionBoxGetListItemCount() ;
  211. extern void _XmSelectionBoxGetListVisibleItemCount() ;
  212. extern void _XmSelectionBoxGetOkLabelString() ;
  213. extern void _XmSelectionBoxGetApplyLabelString() ;
  214. extern void _XmSelectionBoxGetCancelLabelString() ;
  215. extern void _XmSelectionBoxGetHelpLabelString() ;
  216. extern void _XmSelectionBoxUpOrDown() ;
  217. extern void _XmSelectionBoxRestore() ;
  218.  
  219. #else
  220.  
  221. extern void _XmSelectionBoxCreateListLabel( 
  222.                         XmSelectionBoxWidget sel) ;
  223. extern void _XmSelectionBoxCreateSelectionLabel( 
  224.                         XmSelectionBoxWidget sel) ;
  225. extern void _XmSelectionBoxCreateList( 
  226.                         XmSelectionBoxWidget sel) ;
  227. extern void _XmSelectionBoxCreateText( 
  228.                         XmSelectionBoxWidget sel) ;
  229. extern void _XmSelectionBoxCreateSeparator( 
  230.                         XmSelectionBoxWidget sel) ;
  231. extern void _XmSelectionBoxCreateOkButton( 
  232.                         XmSelectionBoxWidget sel) ;
  233. extern void _XmSelectionBoxCreateApplyButton( 
  234.                         XmSelectionBoxWidget sel) ;
  235. extern void _XmSelectionBoxCreateCancelButton( 
  236.                         XmSelectionBoxWidget sel) ;
  237. extern void _XmSelectionBoxCreateHelpButton( 
  238.                         XmSelectionBoxWidget sel) ;
  239. extern XmGeoMatrix _XmSelectionBoxGeoMatrixCreate( 
  240.                         Widget wid,
  241.                         Widget instigator,
  242.                         XtWidgetGeometry *desired) ;
  243. extern Boolean _XmSelectionBoxNoGeoRequest( 
  244.                         XmGeoMatrix geoSpec) ;
  245. extern void _XmSelectionBoxGetSelectionLabelString( 
  246.                         Widget wid,
  247.                         int resource_offset,
  248.                         XtArgVal *value) ;
  249. extern void _XmSelectionBoxGetListLabelString( 
  250.                         Widget wid,
  251.                         int resource_offset,
  252.                         XtArgVal *value) ;
  253. extern void _XmSelectionBoxGetTextColumns( 
  254.                         Widget wid,
  255.                         int resource_offset,
  256.                         XtArgVal *value) ;
  257. extern void _XmSelectionBoxGetTextString( 
  258.                         Widget wid,
  259.                         int resource_offset,
  260.                         XtArgVal *value) ;
  261. extern void _XmSelectionBoxGetListItems( 
  262.                         Widget wid,
  263.                         int resource_offset,
  264.                         XtArgVal *value) ;
  265. extern void _XmSelectionBoxGetListItemCount( 
  266.                         Widget wid,
  267.                         int resource_offset,
  268.                         XtArgVal *value) ;
  269. extern void _XmSelectionBoxGetListVisibleItemCount( 
  270.                         Widget wid,
  271.                         int resource_offset,
  272.                         XtArgVal *value) ;
  273. extern void _XmSelectionBoxGetOkLabelString( 
  274.                         Widget wid,
  275.                         int resource_offset,
  276.                         XtArgVal *value) ;
  277. extern void _XmSelectionBoxGetApplyLabelString( 
  278.                         Widget wid,
  279.                         int resource_offset,
  280.                         XtArgVal *value) ;
  281. extern void _XmSelectionBoxGetCancelLabelString( 
  282.                         Widget wid,
  283.                         int resource_offset,
  284.                         XtArgVal *value) ;
  285. extern void _XmSelectionBoxGetHelpLabelString( 
  286.                         Widget wid,
  287.                         int resource_offset,
  288.                         XtArgVal *value) ;
  289. extern void _XmSelectionBoxUpOrDown( 
  290.                         Widget wid,
  291.                         XEvent *event,
  292.                         String *argv,
  293.                         Cardinal *argc) ;
  294. extern void _XmSelectionBoxRestore( 
  295.                         Widget wid,
  296.                         XEvent *event,
  297.                         String *argv,
  298.                         Cardinal *argc) ;
  299.  
  300. #endif /* _NO_PROTO */
  301. /********    End Private Function Declarations    ********/
  302.  
  303.  
  304. #ifdef __cplusplus
  305. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  306. #endif
  307.  
  308. #endif /* _XmSelectionBoxP_h */
  309. /* DON'T ADD ANYTHING AFTER THIS #endif */
  310.